import {defineStore} from 'pinia'
import {ref} from 'vue'

export const countStore = defineStore('countStore', ()=>{
  const count = ref(0)
  const addCount = () => {
    count.value++
  }
  const subCount = () => {
    count.value--
  }
  return {count, addCount, subCount}
},{
  persist: true,
})
